# week04知识点 用户输入
user_data = "lc"
user_password = "123456"
username = input("请输入正确的账号: ")
password = input("请输入正确的密码: ")

# 登录系统
# 需要循环，range好像不能解决
# while True 设置条件，可终止循环

count = 0
while True:
    count = count + 1

    print("加油加油加油")
    if count == 10:
        break


if username == user_data:
    if password == user_password:
        print("成功")
        # 什么时候退出  当账号密码正确的情况

    else:
        print("不正确")
else:
    print("错了")




# week 04知识点补充

'''

'''
'''
import random
wait_time = random.randint(1,60)
print(wait_time)

word = "bottles"
print(word)
'''

test1 ='''
import random
wait_time = random.randint(1,60)
print(wait_time)

word = "bottles"
print(word)
'''
print(test1)


# week04 用户输入
user_data = "lc"
user_password = "123456"

username = input("请输入正确的账号: ")
password = input("请输入正确的密码: ")

# 登录系统
# 需要循环，range好像不能解决
# while True 设置条件，可终止循环

count = 0
while True:
    count = count + 1

    print("加油加油加油")
    if count == 10:
        break


if username == user_data:
    if password == user_password:
        print("成功")
        # 什么时候退出  当账号密码正确的情况

    else:
        print("不正确")
else:
    print("错了")



# week04 课表尝试
user_data = "lc"
user_password = "123456"

username = input("请输入正确的账号：")
password = input("请输入正确的密码：")

if user_data == username:
    if password == password:
        print("登陆成功", username)
    else:
        print("密码错误，请重新输入")
        username = input("请输入正确的账号：")
        password = input("请输入正确的密码：")
        if user_data == username:
            if password == password:
                print("登陆成功", username)

if user_data == username:
    print("今天您有5次机会")
    print("请输入时间.为您推出您想要的课程表")
    count = 5
    while True:
        count -= 1
        if count == 0:
            print("您今天的机会已用完")
            break
        else:
            print("您今天还有", count, "次机会")

print("LC的课程表")
import datetime
time = datetime.datetime.today().weekday()
week_time = int(time)
print(week_time)
if week_time==1:
    print("星期一有二节课");print("3-5python语言");print("6-7写作训练")
elif week_time==2:
    print("星期二有四节课");print("1-2传统体育养生");print("4-5 广告学概论 ");print("8-10网站运营与管理");print("12-13大学英语  ")
elif week_time==3:
    print("星期三有一节课");print("12-14创业基础实践")
elif week_time==4:
    print("星期四有三节课");print("3-5毛概");print("12-13证券投资方法与技巧 ");print("8-10大学英语 ")
elif week_time==5:
    print("星期五有两节课");print("4-5毛概实践");print("8-9手绘艺术基础")
else:
    print("周六、周日");print("假期")
print("FINISH")
